import axios from "@/utils/http";
import server from "@/utils/request";
//获取温度列表
export const getTemperatureList = (data) => {
  return axios.get(`/temperature/query?pageNum=${data.pageNum}&pageSize=${data.pageSize}`);
};
//查询温度列表
export const queryTemperatureList = (data) => {
  return axios.get(`/temperature/query?${data.searchClass}=${data.searchValue}&pageNum=${data.pageNum}&pageSize=${data.pageSize}`);
};
// 删除温度列表
export const deleteTemperatureList = (data) => {
  return axios.delete(`/temperature/delete?lightlid=${data.tid}`);
};
// 新增温度列表
export const addTemperatureList = (data) => {
  return axios.post("/temperature/add", data);
};
// 修改温度列表
export const updaTetemperatureList = (data) => {
  return axios.put("/temperature/update", data);
};
//查询温度设备列表
export const queryTemperatureEquipment = () => {
  return axios.get(`/temperature/tempdevice?`);
};
//获取植物名和id
export const queryPlantNameAndId = () => {
  return axios.get("/sunshine/querygrowth");
};
